<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>HEQEE - 邮件留言本 - 直接将留言信息发送到邮箱</title>
  <meta name="keywords" content="Google Voice API,Fetion API,IpLocation API,Google Voice 短信发送接口PHP版,飞信好友免费短信API接口,IP归属地查询接口PHP版,邮件留言本,直接将留言信息发送到邮箱,heqee.com" />
  <meta name="description" content="Google Voice API,Fetion API,IpLocation API,Google Voice 短信发送接口PHP版,飞信好友免费短信API接口,IP归属地查询接口PHP版,邮件留言本,直接将留言信息发送到邮箱,heqee.com" />
  <meta http-equiv="X-UA-Compatible" content="IE=7" >
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <link href="style/apps.css" rel="stylesheet" type="text/css" />
  <script type="text/javascript" src="style/jquery.js"></script>
</head>
<body>
  <div id="dialog">
    <h1>HEQEE - 邮件留言本</h1>

	<!--{请通过下面的表单联系我，我会通过邮件给你回复。}-->
        <div id="msg" style="display: none"></div>
    <form >
      <div class="div_li">
        <label for="username">姓名(*)：</label>
        <input  class="medium" type="text"  id="name"  maxlength="50" value="" /><span>您的名字。</span>
      </div>
      <div class="div_li">
        <label for="password">邮箱(*)：</label>
        <input  class="medium" type="text" id="email" maxlength="100" value=""/><span>回复会给你发邮件。</span>
      </div>
	  <div class="div_li">
        <label for="password">网站：</label>
        <input  class="medium" type="text" id="website"  value=""/><span>没有就不填。</span>
      </div>
	  <div class="div_li">
        <label for="password">留言内容(*)：</label>
        <textarea cols="14" rows="3" class="inputcss" id="message" name="message" ></textarea>
		<span>请仔细填写。</span>
      </div>
      <div class="clean"></div>
	  <div class="list">

	  <ul>
		<li>HeQee邮件留言本PHP开源版 </li>
		<li>下载开源代码：<a href="../download/FetionApi.rar">本地下载</a> </li>
		<li> 直接将留言信息发送到邮箱，方便。</li>
		<li class="a">PS：本程序仅为不懂程序的新手提供帮助。老手请路过。</li>
		<li >捐赠支持作者可获得项目整合服务,转载请注明来源。</li>
	  </ul>
	  </div>
      <div id="login_submit">
        <input class="submit" type="button" accesskey="s" value="发送留言" onclick="return chkForm();"/>

		<input class="submit" type="button" accesskey="h" value="帮助" onclick="return help();"/>
      </div>
    </form>
	<div class="menu">
	  <ul>
		<li><a href="http://www.heqee.com/apps/gv/">GV短信接口</a></li>
		<li><a href="http://www.heqee.com/apps/fetion/">飞信短信接口</a></li>
		<li><a href="http://www.heqee.com/apps/ip/">IP归属地查询接口</a></li>
		<li><a href="http://www.heqee.com/apps/guestbook/" target="_blank">邮件留言本</a></li>
	  </ul>
	</div>
	<div id="demo" style="display: none"></div>
	<p class="version">Powered By <a href="http://www.heqee.com" target="_blank">HEQEE</a></p>
  </div>
  <div style='text-algin:center;margin-top:30px;'>
<script type="text/javascript"><!--
google_ad_client = "pub-1132546850416145";
/* 468x60, 创建于 09-12-22 */
google_ad_slot = "1150730413";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
  <script type="text/javascript">
    //去空格
	String.prototype.Trim = function() { 
		var m = this.match(/^\s*(\S+(\s+\S+)*)\s*$/); 
		return (m == null) ? "" : m[1]; 
	}
	function chkForm() {
	    var name   = $("#name").val();
		var email   = $("#email").val();
		var website   = $("#website").val();
		var message = document.getElementById("message").value;
		var success  = "留言发送成功";
		if (name.Trim()=='') {  
			$("#msg").addClass('error').fadeIn('slow').html("请输入您的姓名");
			$("#name").focus().select();
            return false; 
        }
		if (email.Trim()=='') {  
			$("#msg").addClass('error').fadeIn('slow').html("请输入您的邮箱地址，方便我回复您。");
			$("#email").focus().select();
            return false; 
        }

		if (message.Trim()=='') {  
			$("#msg").addClass('error').fadeIn('slow').html("请输入留言内容");
			$("#message").focus().select();
            return false; 
        }
		$.ajax({                           
		type: "POST",
		beforeSend:function(){$("#msg").addClass('success').fadeIn('slow').html("正在发送...");},
		url: "guestbook.php?demo=send&name="+encodeURIComponent(name)+"&email="+encodeURIComponent(email)+"&website="+encodeURIComponent(website)+"&message="+encodeURIComponent(message),
			success: function(msg){
			if(msg!=''){
				$("#msg").addClass('error').fadeIn('slow').html(msg);
			}else{
				$("#msg").addClass('success').fadeIn('slow').html(success);
			}
		  }
	    });
		return true;
	}
	function demo(){
		$.ajax({                           
		type: "POST",
		url: "guestbook.php?demo=code",
			success: function(msg){
			$("#demo").addClass('success').toggle().html(msg);
		  }
	    });
	  return true;
	}
	function help(){
		$.ajax({                           
		type: "POST",
		url: "guestbook.php?demo=help",
			success: function(msg){
			$("#demo").addClass('success').toggle().html(msg);
		  }
	    });
	  return true;
	}
 </script>




</body>
</html>
